import http from "@/utils/http.js";

export const getSearchList = (preWord) => {
	return http({
		url: "/client/search/getSearchList",
		data: {
			"preWord": preWord,
		}
	})
}

export const getHistory = () => {
	return http({
		url: "/client/search/getHistory",
	})
}

export const addOne = (id) => {
	return http({
		url: "/client/search/addOne",
		data: {
			"id": id,
		}
	})
}

export const cleanHistory = () => {
	return http({
		url: "/client/search/cleanHistory",
	})
}



